#include <iostream>
#include <memory>
#include "bfcallocator/allocatormgr.h"

int bfcallocator_sample(int, char**) {

  for(int i = 0 ; i < 1024; i++){
      auto data_ptr = bfcallocator::CPUAllocatorMgr::GetInstance()->Alloc(i*512);
      bfcallocator::CPUAllocatorMgr::GetInstance()->Free(data_ptr);
  }

  for(int i = 0 ; i < 1024; i++){
      auto data_ptr = bfcallocator::GPUAllocatorMgr::GetInstance()->Alloc(i*512);
      bfcallocator::GPUAllocatorMgr::GetInstance()->Free(data_ptr);
  }
  
  std::cout << "Hello, world!\n";
}
